package iterator.example;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/12/1
 * @Modified By:
 */
public class Client {
    public static void main(String[] args) {
        IProject project = new Project();
        project.add("国家网信办", 8, 100);
        project.add("北京网信办", 9, 200);
        project.add("广西发改委", 1, 300);
        for (int i = 4; i < 200; i++) {
            project.add("第" + i + "个项目", i * 5, i * 1000);
        }
        IProjectIterator iterator = project.iterator();
        while (iterator.hasNext()) {
            IProject i = (IProject) iterator.next();
            System.out.println(i.getProjectInfo());
        }
    }
}
